#include<iostream>
#include<unordered_map>
using namespace std;
const int N=1e9+7;
int main()
{
    unordered_map<int,int>map;
    int n=0,s;
    cin>>s;
    while(s--)
    {
      cin>>n;
     for(int i=2;i<=n/i;i++)
    {
        while(n%i==0)
        {
            n/=i;
            map[i]++;
        }
    }
     if(n>1)map[n]++;
    }
    long long res=1;
    for(auto ma:map)res=res*(ma.second+1)%N;
    cout<<res;
}